Optimal. Leaf size=129 \[ \frac{a \cos (c+d x) \sin ^{n+1}(c+d x) \, _2F_1\left (-\frac{5}{2},\frac{n+1}{2};\frac{n+3}{2};\sin ^2(c+d x)\right )}{d (n+1) \sqrt{\cos ^2(c+d x)}}+\frac{a \cos (c+d x) \sin ^{n+2}(c+d x) \, _2F_1\left (-\frac{5}{2},\frac{n+2}{2};\frac{n+4}{2};\sin ^2(c+d x)\right )}{d (n+2) \sqrt{\cos ^2(c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.136853, antiderivative size = 129, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.074, Rules used = {2838, 2577} \[ \frac{a \cos (c+d x) \sin ^{n+1}(c+d x) \, _2F_1\left (-\frac{5}{2},\frac{n+1}{2};\frac{n+3}{2};\sin ^2(c+d x)\right )}{d (n+1) \sqrt{\cos ^2(c+d x)}}+\frac{a \cos (c+d x) \sin ^{n+2}(c+d x) \, _2F_1\left (-\frac{5}{2},\frac{n+2}{2};\frac{n+4}{2};\sin ^2(c+d x)\right )}{d (n+2) \sqrt{\cos ^2(c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2838
Rule 2577
Rubi steps
\begin{align*} \int \cos ^6(c+d x) \sin ^n(c+d x) (a+a \sin (c+d x)) \, dx &=a \int \cos ^6(c+d x) \sin ^n(c+d x) \, dx+a \int \cos ^6(c+d x) \sin ^{1+n}(c+d x) \, dx\\ &=\frac{a \cos (c+d x) \, _2F_1\left (-\frac{5}{2},\frac{1+n}{2};\frac{3+n}{2};\sin ^2(c+d x)\right ) \sin ^{1+n}(c+d x)}{d (1+n) \sqrt{\cos ^2(c+d x)}}+\frac{a \cos (c+d x) \, _2F_1\left (-\frac{5}{2},\frac{2+n}{2};\frac{4+n}{2};\sin ^2(c+d x)\right ) \sin ^{2+n}(c+d x)}{d (2+n) \sqrt{\cos ^2(c+d x)}}\\ \end{align*}
Mathematica [F] time = 0.297752, size = 0, normalized size = 0. \[ \int \cos ^6(c+d x) \sin ^n(c+d x) (a+a \sin (c+d x)) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 5.675, size = 0, normalized size = 0. \begin{align*} \int \left ( \cos \left ( dx+c \right ) \right ) ^{6} \left ( \sin \left ( dx+c \right ) \right ) ^{n} \left ( a+a\sin \left ( dx+c \right ) \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right )^{6}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \cos \left (d x + c\right )^{6} \sin \left (d x + c\right ) + a \cos \left (d x + c\right )^{6}\right )} \sin \left (d x + c\right )^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right )^{6}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]